home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / tex / lgrind.zoo / lgrindefs < prev    next >
Text File  |  1992-09-28  |  12KB  |  305 lines

  1. # Database of program templates for lgrind
  2.  
  3. # $Id: lgrindefs,v 1.2 91/10/01 00:32:49 gvr Exp $
  4.  
  5. a68:\
  6.     :oc:\
  7.     :cb=\|:ce=$:ab=/*:ae=*/:\
  8.     :sb=':se=':lb=":le=":\
  9.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  10.     :kw=ascii block byte end equ globl text data word even long\
  11.     #else #endif #if #ifdef #ifndef #include #undef #define:
  12.  
  13. asm:\
  14.     :oc:\
  15.     :cb=#:ce=$:ab=/*:ae=*/:\
  16.     :sb=':se=':lb=":le=":\
  17.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  18.     :kw=ascii block byte end equ globl text data word even long\
  19.     #else #endif #if #ifdef #ifndef #include #undef #define else endif\
  20.     if ifdef ifndef include undef define:
  21.  
  22. asm68:\
  23.     :pb=(^\d?.proc\d\p\d:\
  24.     :oc:\
  25.     :cb=;:ce=$:\
  26.     :sb=':se=':lb=":le=":\
  27.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  28.     :kw=ascii block byte end equ include long proc word:
  29.  
  30. C|c:\
  31.     :pb=^\d?*?\d?\p\d?\(\a?\)(\d|{):bb={:be=}:\
  32.     :cb=/*:ce=*/:sb=":se=\e":lb=':\
  33.     :le=\e':tl:\
  34.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  35.     :kw=asm auto break case char continue default do double else enum\
  36.     extern float for fortran goto if int long register return short\
  37.     sizeof static struct switch typedef union unsigned void while #define\
  38.     #else #endif #if #ifdef #ifndef #include #undef # define else endif\
  39.     if ifdef ifndef include undef\
  40.     #pragma #elif pragma elif\
  41.     #module #dictionary module dictionary\
  42.     variant_struct variant_union\
  43.     noshare readonly globaldef globalref globalvalue main_program:
  44. #Last couple of lines are partial ANSI, plus VAX-C specific
  45.  
  46. C++|c++|CC:\
  47.     :pb=^\d?*?\d?\p\d?\(\a?\)(\d|{):bb={:be=}:\
  48.     :cb=/*:ce=*/:ab=//:ae=$:sb=":se=\e":lb=':\
  49.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  50.     :le=\e':tl:\
  51.     :kw=asm auto break case char continue default do double else enum\
  52.     extern float for fortran goto if int long register return short\
  53.     sizeof static struct switch typedef union unsigned while void #define\
  54.     #else #endif #if #ifdef #ifndef #include #undef # define endif\
  55.     ifdef ifndef include undef defined\
  56.     class const delete friend inline new operator overload private\
  57.     protected public virtual:
  58.  
  59. CSH|csh:\
  60.     :bb={:be=}:cb=#:ce=$:sb=":se=\e":lb=':\
  61.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  62.     :le=\e':tl:\
  63.     :kw=alias alloc break breaksw case cd chdir continue default\
  64.     echo else end endif endsw exec exit foreach \
  65.     glob goto history if logout nice nohup onintr repeat set\
  66.     setenv shift source switch then time \
  67.     while umask unalias unset wait while @ env \
  68.     argv child home ignoreeof noclobber noglob \
  69.     nomatch path prompt shell status verbose :
  70.  
  71. fortran|FORTRAN|f77|fc|f:\
  72.     :pb=(function|subroutine|program)\d\p\d?\(\a?\):\
  73.     :bb=(function|subroutine|program)\d\p\d?\(\a?\):be=^\dend:\
  74.     :cb=^c:\
  75.     :ce=$:\
  76.     :sb=':\
  77.     :se=':\
  78.     :oc:\
  79.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  80.     :kw=call common complex continue dimension do double else elseif\
  81.     end endif equivalence format function\
  82.     goto if include integer \
  83.     parameter precision real return stop subroutine:
  84.  
  85. Icon|icon|I:\
  86.     :pb=^\d?procedure\d\p\d?\(\a?\):\
  87.     :bb=(^\d?procedure\d\p\d?\(\a?\))|{:be=}|(^\d?end\d?$):\
  88.     :cb=#:ce=$:\
  89.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  90.     :sb=":se=\e":lb=':le=\e':tl:\
  91.     :kw=break by case create default do dynamic else end every external\
  92.     fail global if initial local next not of procedure record\
  93.     repeat return static suspend then to until using while\
  94.     &ascii &clock &cset &date &dateline &errout &fail &host &input\
  95.     &lcase &level &main &null &output &pos &random &source &subject\
  96.     &time &trace &ucase &version:
  97.  
  98. ISP|isp|i:\
  99.     :cb=!:ce=!|$:oc:\
  100.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  101.     :kw=and begin decode define end eql eqv geq gtr if leave leq lss mod\
  102.     neq next not or otherwise repeat restart resume sr0 sr1 srd\
  103.     srr sl0 sl1 sld slr tst xor:
  104.  
  105. ldl|LDL:\
  106.     :pb=^\p\::bb=\::be=;:cb=/*:ce=*/:sb=":se=\e":\
  107.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  108.     :kw=constant functions grammar reswords tokens add1 addste\
  109.     car cdr check colno cond cons copy defun divide empty enter\
  110.     eq equal findattr firstchild ge getattr getfield gt hash label\
  111.     lambda lastchild le leftsibling lookone lookup lt minus name ne\
  112.     newnode nextcom nil null parent plus precnl prevcom prog progn\
  113.     quote reglob return rightsibling self set setattr setfield setq\
  114.     stjoin sub1 t times tnull tokno ttype:
  115.  
  116. #Linda is just like C, with a couple of extra keywords.  Note:  The non-
  117. #blocking operations are included, as are the pre-defined VAX Linda-C macros.
  118. linda|l:\
  119.     :pb=^\d?*?\d?\p\d?\(\a?\)(\d|{):bb={:be=}:\
  120.     :cb=/*:ce=*/:sb=":se=\e":lb=':\
  121.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  122.     :le=\e':tl:\
  123.     :kw=asm auto break case char continue default do double else enum\
  124.     extern float for fortran goto if int long register return short\
  125.     sizeof static struct switch typedef union unsigned void while #define\
  126.     #else #endif #if #ifdef #ifndef #include #undef # define else endif\
  127.     if ifdef ifndef include undef\
  128.     #pragma #elif pragma elif #line\
  129.     #module #dictionary module dictionary\
  130.     variant_struct variant_union\
  131.     noshare readonly globaldef globalref globalvalue main_program\
  132.     in inp rd rdp out eval newtype varying nchar\
  133.     $ARR $ARRAY $ARRAY_TYPE $MAKE_ARRAY\
  134.     $STR $STRING $STRING_TYPE $SET_DIM $MAKE_STRING\
  135.     #ttcontext ttcontext:
  136.  
  137. # Use MFT (part of the MetaFontWare package) instead.
  138. mf|metafont:\
  139.     :bb={:be=}:cb=%:ce=$:\
  140.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  141.     :kw=def if else fi for step until endfor\
  142.     input let end:
  143.  
  144. #
  145. # This entry makes use of new capabilities added to support the description
  146. # of lisp-like languages (id, pl, and px).  The set of keywords given is a
  147. # matter of taste.  It would be reasonable to add all the wired functions to
  148. # the list.
  149. MLisp|ml|Emacs Mock Lisp:\
  150.     :cb=;:ce=$:lb=':le=\e':sb=":se=\e":bb=\(:be=\):\
  151.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  152.     :id=_-$#@./,%&?!^*+~`|;<>'\::\
  153.     :kw=defun if progn while:pl:px=\d\(defun:pb=^\d\(\p($|(\d\a$)):
  154.  
  155. model|mod|m:\
  156.     :pb=^\d(space\d\p\drep)|(\p\dis|inline|public\dbeginproc):\
  157.     :bb=\dbeginproc|space|case\d:be=\dendproc|end\d|;:\
  158.     :cb=\$:ce=\$|$:sb=":se=":lb=':le=\a|$:\
  159.     :kw=abs and array beginproc boolean by case cdnl char copied dispose\
  160.     div do dynamic else elsif end endproc entry external FALSE false\
  161.     fi file for formal fortran global if iff ift\
  162.     in integer include inline is lbnd\
  163.     max min mod new NIL nil noresult not notin od of or procedure public\
  164.     read readln readonly record recursive rem rep repeat res\
  165.     result return set\
  166.     space string subscript such then TRUE true type ubnd union until\
  167.     varies while width:
  168.  
  169. modula2|mod2|m2:\
  170.     :pb=(^\d?(procedure|function|module)\d\p\d|\(|;|\:):\
  171.     :bb=\d(begin|case|for|if|loop|record|repeat|while|with)\d:\
  172.     :be=\dend|;:\
  173.     :cb={:ce=}:\
  174.     :ab=\(*:ae=*\):\
  175.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  176.     :sb=":se=":\
  177.     :oc:\
  178.     :kw=and array begin by case const\
  179.     definition div do else elsif end exit export\
  180.     for from if implementation import in\
  181.     loop mod module not of or pointer procedure qualified\
  182.     record repeat return set then to type\
  183.     until var while with:
  184.  
  185. pascal|pasc|p:\
  186.     :pb=(^\d?procedure|function|program\d\p\d|\(|;|\:)|(=\d?record\d):\
  187.     :bb=\dcase|begin\d:be=\dend|forward\d|;:\
  188.     :oc:\
  189.     :cb={:ce=}:ab=\(*:ae=*\):\
  190.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  191.     :sb=':se=':lb=":le=":\
  192.     :kw=and array assert begin boolean case char const div do downto else\
  193.     end file for forward function goto if in integer label mod nil not\
  194.     of or packed procedure program record repeat set then to type\
  195.     until var while with oct hex external:
  196.  
  197. #Perl definition; snarfed from the net
  198. PERL|perl|pl:\
  199.         :pb=^\d?sub\d\p(\d|{):\
  200.     :bb={:be=}:cb=\d#:ce=$:sb=":se=\e":lb=':le=\e':\
  201.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  202.     :tl:\
  203.     :kw=if until while elsif else unless for foreach continue sub\
  204.         accept atan2 bind chdir chmod chop chown chroot close\
  205.         closedir connect cos crypt dbmclose dbmopen defined delete die\
  206.         do dump each eof eval exec exit exp fcntl fileno flock fork\
  207.         getc getlogin getpeername getpgrp getppid getpriority getpwnam\
  208.         getgrnam gethostbyname getnetbyname getprotobyname getpwuid getgrgid\
  209.         getservbyname gethostbyaddr getnetbyaddr